package com.cgsd.heyu.utils;

/**
 * @author xiaoxing
 * Description 校验方法
 * CreateData: 2020/12/3
 */
public class CheckDoubleClick {
    private static long lastClickTime = 0;

    /**
     * 重复点击
     * @return
     */
    public static boolean isFastDoubleClick() {
        long time = System.currentTimeMillis();
        long timeD = time - lastClickTime;
        if (0 < timeD && timeD < 500) {
            return true;
        }
        lastClickTime = time;
        return false;
    }
}
